package com.springcloud.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.springcloud.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author mori
 * @since 2019-10-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SystemRole extends BaseEntity<SystemRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 系统角色主键
     */
    @TableId(value = "system_role_id", type = IdType.AUTO)
    private Integer systemRoleId;

    /**
     * 角色名称
     */
    private String roleName;

    private String roleCode;

    /**
     * 备注
     */
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.systemRoleId;
    }

}
